<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="page" uri="http://www.aptech.com/pager"%>
<div class="sortable row-fluid ui-sortable">
					<div class="box span12">
						<input id="sTime" value="${basicData.sTime}" type="text" style="display: none;"/>
						<input id="eTime" value="${basicData.eTime}" type="text" style="display: none;"/>
						<div class="box-header well" data-original-title="">
							<h2>
								<i class="icon-edit"></i> 本段时间基础数据    (${basicData.sTime}----${basicData.eTime})
							</h2>
						</div>
						<div class="box-content">
							<table style="width:100%">
                             <tbody>
                                <tr>
                                   <td class="detailTD"><label class="control-label" for="typeahead">总包裹数:</label></td>
                                   <td><input value="<s:property value="basicData.totalParcel" />件" readonly="readonly" type="text" class="span4 typeahead " style="width:250px;" data-items="2" /></td>
                                   <td class="detailTD"><label class="control-label" for="typeahead">正常取走数:</label></td>
                                   <td><input value="<s:property value="basicData.takenParcel" />件" readonly="readonly" type="text" class="span4 typeahead " style="width:250px;" data-items="2" /></td>
                                </tr>
                                <tr>
                                   <td class="detailTD"><label class="control-label" for="typeahead">未取包裹数:</label></td>
                                   <td><input value="<s:property value="basicData.unTakenParcel" />件" readonly="readonly" type="text" class="span4 typeahead " style="width:250px;" data-items="2" /></td>
                                   <td class="detailTD"><label class="control-label" for="typeahead">处理数:</label></td>
                                   <td><input value="<s:property value="basicData.dealParcel" />件" readonly="readonly" type="text" class="span4 typeahead " style="width:250px;" data-items="2" /></td>
                                </tr>
                                <tr>
                                   <td class="detailTD"><label class="control-label" for="typeahead">总箱格数:</label></td>
                                   <td><input value="<s:property value="basicData.totalBox" />个" readonly="readonly" type="text" class="span4 typeahead " style="width:250px;" data-items="2" /></td>
                                   <td class="detailTD"><label class="control-label" for="typeahead">总使用率:</label></td>
                                   <td><input value="<s:property value="basicData.totalUseRate" />次/个/日" readonly="readonly" type="text" class="span4 typeahead " style="width:250px;" data-items="2" /></td>
                                </tr>
                                <tr>
                                   <td class="detailTD"><label class="control-label" for="typeahead">超大箱格数:</label></td>
                                   <td><input value="<s:property value="basicData.superBoxNum" />个" readonly="readonly" type="text" class="span4 typeahead " style="width:250px;" data-items="2" /></td>
                                   <td class="detailTD"><label class="control-label" for="typeahead">大箱格数:</label></td>
                                   <td><input value="<s:property value="basicData.bigBoxNum" />个" readonly="readonly" type="text" class="span4 typeahead " style="width:250px;" data-items="2" /></td>
                                </tr>
                                <tr>
                                   <td class="detailTD"><label class="control-label" for="typeahead">中箱格数:</label></td>
                                   <td><input value="<s:property value="basicData.mediumBoxNum" />个" readonly="readonly" type="text" class="span4 typeahead " style="width:250px;" data-items="2" /></td>
                                   <td class="detailTD"><label class="control-label" for="typeahead">小箱格数:</label></td>
                                   <td><input value="<s:property value="basicData.smallBoxNum" />个" readonly="readonly" type="text" class="span4 typeahead " style="width:250px;" data-items="2" /></td>
                                </tr>
                                <tr>
                                   <td class="detailTD"><label class="control-label" for="typeahead">设备数:</label></td>
                                   <td><input value="<s:property value="basicData.terminalNum" />台" readonly="readonly" type="text" class="span4 typeahead " style="width:250px;" data-items="2" /></td>
                                   <td class="detailTD"><label class="control-label" for="typeahead">设备网点数:</label></td>
                                   <td><input value="<s:property value="basicData.branchNum" />个" readonly="readonly" type="text" class="span4 typeahead " style="width:250px;" data-items="2" /></td>
                                </tr>
                                <tr>
                                   <td class="detailTD"><label class="control-label" for="typeahead">统计天数:</label></td>
                                   <td><input value="<s:property value="basicData.totalDay" />天" readonly="readonly" type="text" class="span4 typeahead " style="width:250px;" data-items="2" /></td>
                                   <td class="detailTD"><label class="control-label" for="typeahead"></label></td>
                                   <td><input id="companyData" value="本时段各快递公司使用情况" type="button" class="btn btn-primary" style="float: left;margin-top:10px;width:200px;margin-bottom:10px;" /></td>
                                </tr>
                             </tbody>
                           </table>
						</div>
					</div>
				</div>
				<div class="row-fluid sortable ui-sortable">
					<div class="box span12" style="margin-bottom: 30px;margin-top:0px;">
						<div class="box-header well" data-original-title="">
							<h4><i class="icon-edit"></i>各网点数据统计情况</h4>
						</div>
						<div class="box-content">
						<div class="row-fluid packagepages" style="margin-top:20px;">
						<page:page pages="${branchData.allPage}" url="statistics!branchData" param="&startstime=${startstime}&endtime=${endtime}"
										curpage="${branchData.curpage}" pageIndex="7" total="${branchData.total}" pageSize="${branchData.pageSize }"/>
							<table
								class="table table-striped table-bordered bootstrap-datatable dataTable" id="dateTable">
								<thead>
									<tr role="row">
										<th class="sorting_asc" role="columnheader" tabindex="0"
											aria-controls="DataTables_Table_0" rowspan="1" colspan="1">序号</th>
										<th class="sorting_asc" role="columnheader" tabindex="0"
											aria-controls="DataTables_Table_0" rowspan="1" colspan="1">网点地址</th>
										<th class="sorting" role="columnheader" tabindex="0"
											aria-controls="DataTables_Table_0" rowspan="1" colspan="1">设备数量</th>
										<th class="sorting" role="columnheader" tabindex="0"
											aria-controls="DataTables_Table_0" rowspan="1" colspan="1">箱格总数</th>
										<th class="sorting" role="columnheader" tabindex="0"
											aria-controls="DataTables_Table_0" rowspan="1" colspan="1">包裹总数</th>
										<th class="sorting" role="columnheader" tabindex="0"
											aria-controls="DataTables_Table_0" rowspan="1" colspan="1">滞留1天</th>
										<th class="sorting" role="columnheader" tabindex="0"
											aria-controls="DataTables_Table_0" rowspan="1" colspan="1">滞留3天</th>
										<th class="sorting" role="columnheader" tabindex="0"
											aria-controls="DataTables_Table_0" rowspan="1" colspan="1">滞留5天</th>
										<th class="sorting" role="columnheader" tabindex="0"
											aria-controls="DataTables_Table_0" rowspan="1" colspan="1">箱格使用率</th>
										<th class="sorting" role="columnheader" tabindex="0"
											aria-controls="DataTables_Table_0" rowspan="1" colspan="1">操作</th>
									</tr>
								</thead>
		
								<tbody>
									<s:if test="branchData.list.size()==0">
								    	<tr class="odd">
										  <td colspan="9">=_= 没有找到任何记录！</td>
										</tr>
								       </s:if>
									<s:iterator value="branchData.list" var="data" status="st">
										<tr class="odd">
											<td class="center "><s:property value="#st.index+1" /></td>
											<td class="center "><s:property value="#data.branch.branchShortAddress" /></td>
											<td class="center "><s:property value="#data.terminalNum" /></td>
											<td class="center "><s:property value="#data.totalBox" /></td>
											<td class="center "><s:property value="#data.totalParcel" /></td>
											<td class="center "><s:property value="#data.left1Day" /></td>
											<td class="center "><s:property value="#data.left3Day" /></td>
											<td class="center "><s:property value="#data.left5Day" /></td>
											<td class="center "><s:property value="#data.totalUseRate" />次/个/日</td>
											<td class="center "> 
												<a href="statistics!branchDataDetails?curpage=1&pageSize=10&flag=list&startstime=${startstime}&endtime=${endtime}&branchID=<s:property value="#data.branch.branchId" />">
													详情
												</a>
											</td>
										</tr>
									</s:iterator>
								</tbody>
							</table>
							<input type="hidden" value="${branchData.curpage}" id="curpage"/><input type="hidden" value="${branchData.pageSize }" id="pageSize"/>
							<page:page pages="${branchData.allPage}" url="statistics!branchData" param="&startstime=${startstime}&endtime=${endtime}"
										curpage="${branchData.curpage}" pageIndex="7" total="${branchData.total}" pageSize="${branchData.pageSize }"/>
							</div>
						</div>
					</div>
				</div>